using UnityEngine;
using System.Collections;

public class Visuallation : MonoBehaviour {
	public Texture texture;
	public Texture texture2;
	public Texture texture3;
	public Texture texture4;
	// Use this for initialization
	void Start () {
	
	}
	
	// Update is called once per frame
	void Update () 
	{
		
	}
	
	void OnGUI()
	{
		 if (Event.current.type.Equals(EventType.Repaint)) // root cell
		{
			Graphics.DrawTexture(new Rect(100, 100, 400, 400), texture3);
		}
		 if (Event.current.type.Equals(EventType.Repaint)) // rooms
		{
			Graphics.DrawTexture(new Rect(100, 100, 100, 100), texture);
			Graphics.DrawTexture(new Rect(100, 300, 100, 200), texture);
			Graphics.DrawTexture(new Rect(300, 350, 100, 100), texture);
			Graphics.DrawTexture(new Rect(350, 150, 80, 100), texture);
		}
		 if (Event.current.type.Equals(EventType.Repaint)) // corridors
		{
			Graphics.DrawTexture(new Rect(100,200,20,100), texture2);
			Graphics.DrawTexture(new Rect(200,350,100,20), texture2);
			Graphics.DrawTexture(new Rect(350,250,20,100), texture2);
			Graphics.DrawTexture(new Rect(200,150,150,20), texture2);
		}
		
		 if (Event.current.type.Equals(EventType.Repaint)) // split lines
		{
			Graphics.DrawTexture(new Rect(300,100,5,400), texture4);
			Graphics.DrawTexture(new Rect(100,300,400,5), texture4);
		}
		
	}
}
